//
//  NgSliderView.h
//  NgTopOSShove
//
//  Created by yscompany on 2018/11/21.
//  Copyright © 2018 NgTopOS. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol NgSliderViewDelegate <NSObject>
//设置滑动到哪个位置
- (void)setSelectIndex:(NSInteger)index; //顶部banner点击某个item
@end
// 此处用来顶部导航用
@interface NgSliderView : UIView
@property (nonatomic, weak) id <NgSliderViewDelegate>delegate; //代理方法 实现获取当前滑动位置
@property (nonatomic, strong) NSArray <NSString *> * itemsArray; //获取item数目
- (void)getSliderPageIndex:(NSInteger)index; //获取当前滑动的控制器是第几个item的
@end

NS_ASSUME_NONNULL_END
